package com.feiyu.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feiyu.user.dto.UpdateInfo;
import com.feiyu.user.entity.User;
import com.feiyu.user.entity.UserInfo;
import org.springblade.core.tool.api.R;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tang ming
 * @since 2021-11-30
 */
public interface UserService extends IService<User> {

    UserInfo userInfo(String account);

    boolean saveNewAccount(User user);

    boolean existAccount(String account);

    boolean existEmail(String email);

    boolean signUp(User user);

    Boolean updatePassword(UpdateInfo user);

    Boolean updateEmail(UpdateInfo user);
}
